import static org.junit.Assert.*;
import org.junit.Test;


//test the color function in the application layer
public class ColorTest {
	
	//color in hex
	static final string blue = "f0f8ff";
	static final string white = "ffffff";
	
	//constructor
	public ColorTest()
	{
		Engine engine = new Engine(); // Engine is our application layer
		
	}
	
	@Test //set color to blue
	public void setColor01() {
		
		engine.setColor("b1", blue); //in our test code, b1 is a variable to be highlighted in blue
		assertTrue(engine.getColor("b1") == blue);
	}
	
	@Test //get color from a non-existing variable
	public void setColor01() {
		
		engine.setColor("non", blue); 
		assertTrue(engine.getColor("non") == "No such variable");
	}
	
	@Test //remove color
	public void removeColor01() {
		
		engine.removeColor("b1");
		assertTure(engine.getColor("b1") == white);
		
	}

}
